/public/Tools/Python Scripts/textureExtract/


Name Type Size Date
../ Directory
--== READ ME ==-- readme 1kb 19-Jul-2026
 
textureextract.bat bat 135b 07-July-2026
textureextract.py py 37kb 07-July-2026

--== READ ME ==--.txt

a texture extraction tool.. Input a wad, and a iwad. I will pull out all the textures used in those maps that maps into a flats and a patch dir. It will also create a doomtools textureX and defanisw file for those textures. It can be set to target only a single map inside a wad.

========

usage: textureextract [-h] -iwad IWAD [--nofilter] [-o DIR] [-map MAPNAME] wad

Extract textures and flats from a WAD as true-colour PNGs, and write DoomTools-style texture1.txt/texture2.txt plus a defswani.txt (from ANIMATED/SWITCHES).

positional arguments:
  wad                  the PWAD to extract from

options:
  -h, --help           show this help message and exit
  -iwad, --iwad IWAD   the IWAD to filter against (and fall back to for PLAYPAL)
  --nofilter           do not filter out textures/flats already present in the IWAD
  -o, --output DIR     output directory (default: ./_<wad-stem>/, or ./_<wad-stem>_<mapname>/ with -map)
  -map, --map MAPNAME  only extract what this one map uses (e.g. MAP01, E1M1) instead of everything in the WAD

examples:
  textureextract mywad.wad -iwad doom2.wad
  textureextract mywad.wad -iwad doom2.wad --nofilter
  textureextract mywad.wad -iwad doom2.wad -o build/mywad_assets
  textureextract mywad.wad -iwad doom2.wad -map MAP01